﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DecoratorPattern.DecoratorClass;

/// <summary>
/// 装饰器模式的基类 使用组合+基础类的方式来实现装饰器模式
/// </summary>
public class StudentDecoratorReview : BaseDecorator
{
    public StudentDecoratorReview(AbstructStudent abstructStudent) : base(abstructStudent)
    {

    }
    public override void Study()
    {
        //Console.WriteLine("学生准备复习");
        base.Study();
        Console.WriteLine("复习");
    }
}
